<?php
header("Content-type: image/jpeg");
require_once("class/cutimg.class.php");

$imgurl = base64_decode($_GET["imgurl"]);

$width = $_GET["width"];
$swidth = $_GET["swidth"];
$height = $_GET["height"];
$sheight = $_GET["sheight"];
if(!$width)
{
	$width = $swidth;
}
if(!$height)
{
	$height = $sheight;
}

$IMG = new resizeimage($imgurl, $width, $height, "1", "1");
?>